package net.hn.hnms.sys.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import net.hn.hnms.sys.system.domain.SysNotice;
import net.hn.hnms.sys.system.domain.UserNoticeStatus;
import net.hn.hnms.sys.system.mapper.SysNoticeMapper;
import net.hn.hnms.sys.system.mapper.UserNoticeStatusMapper;
import net.hn.hnms.sys.system.service.ISysUserService;
import net.hn.hnms.sys.system.service.UserNoticeStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Slf4j
@RequiredArgsConstructor
@Service
public class UserNoticeStatusServiceImpl implements UserNoticeStatusService {

    private final SysNoticeMapper baseMapper;
    @Autowired
    private UserNoticeStatusMapper userNoticeStatusMapper;


    @Override
    public void updateById(Long noticeId, Long userId,Integer flag) {
        userNoticeStatusMapper.updateById(noticeId,userId,flag);
    }
}
